class ScaleActionFactory:
    @staticmethod
    def createAction(namespace="default", cnext=[]):
        action = []
        for item in cnext:
            dict = {}
            for k in item:
                dict['deployment_name'] = k
                dict['replicas'] = item[k]
                dict['namespace'] = namespace
            action.append(dict)
        return action